/*
 * $Id$
 */

package corejs.expr;

import corejs.rt.ActivationRecord;
import corejs.rt.Value;
import corejs.util.XmlPrinter;

/**
 *
 * @author pengyu
 */
public class LongExpr implements Expression {

   private long _val;

   public LongExpr(final String s) {
      _val = Long.parseLong(s);
   }

   @Override
   public void print(XmlPrinter printer) {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   }

   @Override
   public Object eval(ActivationRecord scope) {
      throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
   }

   @Override
   public Value accept(final ExpressionVisitor visitor) {
      return visitor.visitLong(_val);
   }
   
}
